package com.hyt.it.ogt.kq.service.bm.model.entity;

import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author qiaozj
 * @since 2020-09-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Dict对象", description="字典表")
public class Dict extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据值")
    private String value;

    @ApiModelProperty(value = "标签名")
    private String label;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "排序（升序）")
    private BigDecimal dictSort;

    @ApiModelProperty(value = "父级编号")
    private String parentId;

    @ApiModelProperty(value = "备注")
    private String remark;
    
    public static String getCacheKey (String type) {
        return "BMDICT:" + type;
    }


}
